<template>
  <div>
    <BatchImportOne v-if="this.userState.current === 0"></BatchImportOne>
    <BatchImportTwo v-else></BatchImportTwo>
  </div>
</template>

<script>
import BatchImportOne from "@/components/content/user/BatchImportOne";
import BatchImportTwo from "@/components/content/user/BatchImportTwo";
import { mapState } from "vuex";

export default {
  name: "batchImport",
  components: {
    BatchImportOne,
    BatchImportTwo
  },
  computed: {
    ...mapState({ // 这个是提取store中access文件夹目录下的数据
      'userState': 'user'
    })
  }
}
</script>

<style scoped>

</style>
